<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>校园环境卫生与设施故障管理</title>
		<%@ include file="../com.jsp"%>
		<script type="text/javascript">

</script>
	</head>
	<body>
		<div class="alert alert-info">
			管理维修人员
		</div>

		<c:if test="${lst != 'null'}">

			<table class="table table-striped table-bordered border-t0 text-nowrap w-100 dataTable no-footer">
				<thead>
					<tr class="tr_detail">

						<td>
							用户编号
						</td>
						<td>
							用户名
						</td>
						<td>
							角色
						</td>
						<td>
							联络电话
						</td>
						<td>
							姓名
						</td>
						<td>
							联络地址
						</td>
						<td>
							类型
						</td>

						<td>
							操作
						</td>
					</tr>
				</thead>

				<tbody>

					<c:forEach var="tmp" items="${lst}">

						<tr>
							<td>
								${tmp.id }
							</td>
							<td>
								${tmp.username }
							</td>
							<td>
								<c:if test="${tmp.status ==0}">
								普通用户
							</c:if>
								<c:if test="${tmp.status ==1}">
								维修人员
							</c:if>
							</td>
							<td>
								${tmp.phone}
							</td>
							<td>
								${tmp.name }
							</td>
							<td>
								${tmp.address}
							</td>
							<td>
								${tmp.type}
							</td>
							<td>
								<a target="Conframe"
									href="${pageContext.request.contextPath}/user_wdel.action?user.id=${tmp.id }">删除</a>
								<c:if test="${tmp.status ==1}">
									<a target="Conframe"
									href="${pageContext.request.contextPath}/biotech_list.action?repairman=${tmp.username }">查看接单情况</a>
								</c:if>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>

		</c:if>

	</body>
</html>
